<template>
  <div>

    <section class="aui-flexView">
            <header class="aui-navBar aui-navBar-fixed">
                <a href="javascript:;" class="aui-navBar-item">
                    <!-- <i class="icon icon-return"></i> -->
                </a>
                <div class="aui-center aui-center-clear">
                   <div class="aui-search-box">
                       <i class="icon icon-search"></i>
                       <input type="text" placeholder="搜攻略">
                   </div>
                </div>
            </header>
            <section class="aui-scrollView">
                <div class="aui-tab" data-ydui-tab>
                    
                    <div class="tab-panel">
                        <div class="tab-panel-item tab-active">
                            <div class="aui-flex">
                                <div class="aui-flex-box">
                                    <h2 class="b-line">热门搜索</h2>
                                </div>
                            </div>
                            <div class="aui-word-key">
                                <a href="javascript:;"> <i class="icon-hots"></i> 曼谷</a>
                                <a href="javascript:;" v-for="(item,index) in data">{{item.conten}}</a>
                            </div>
                            

                        </div>
                        
                    </div>
                </div>

            </section>
        </section>
  </div>
</template>

<script>
export default {
  name: "WorkspaceJsonSearch",

  data() {
    return {
        value:'',
        data:[
            {"id":2,"conten":'冬季最佳的旅游地点'},
            {"id":3,"conten":'三亚'},
            {"id":4,"conten":'东京'},
            {"id":1,"conten":'你没有体验过的欧洲深度旅游'},
            {"id":5,"conten":'大阪'},
            {"id":6,"conten":'巴黎'},
            {"id":7,"conten":'香港精选酒店'},
            {"id":8,"conten":'上海东方明珠'},
            {"id":9,"conten":'澳门十日游'},
            {"id":10,"conten":'深圳'}
        ]
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #000;
}

a, label, button, input, select {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img {
    border: 0;
}

body {
    background: #fff;
    color: #666;
}



a {
    text-decoration: none;
    color: #08acee;
}

button {
    outline: 0;
}

img {
    border: 0;
}

button,input,optgroup,select,textarea {
    margin: 0;
    font: inherit;
    color: inherit;
    outline: none;
}

li {
    list-style: none;
}

a {
    color: #666;
}

.clearfix::after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
}

.divHeight {
    width: 100%;
    height: 10px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.r-line {
    position: relative;
}

.r-line:after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    height: 100%;
    border-right: 1px solid #D9D9D9;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
}

.b-line {
    position: relative;
}

.b-line:after {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #e2e2e2;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
}

.aui-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

.aui-flex-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
}



.aui-navBar-item:last-child {
    -webkit-box-ordinal-group: 4;
    -webkit-order: 3;
    -ms-flex-order: 3;
    order: 3;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.aui-center {
    -webkit-box-ordinal-group: 3;
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 54px;
    width: 50%;
    margin-left: 25%;
}

.aui-center-title {
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    color: #333;
}

.icon {
    width: 20px;
    height: 20px;
    display: block;
    border: none;
    float: left;
    background-size: 20px;
    background-repeat: no-repeat;
}

.icon-return {
    background-image: url('');
}

.aui-search-box {
    width: 100%;
    position: relative;
    height: 32px;
    line-height: 32px;
}

.aui-search-box:after {
    content: '';
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #92e2c2;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
}

.aui-search-box input {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #92e2c2;
    padding-left: 1.5rem;
}

.icon-search {
    background-image: url('');
    position: absolute;
    left: 0;
    top: 0.35rem;
}

.aui-center-clear {
    width: 85%;
    margin-left: 12%;
}

::-moz-placeholder {
    color: #04f393;
}

::-webkit-input-placeholder {
    color: #92e2c2;
}

:-ms-input-placeholder {
    color: #92e2c2;
}

.tab-nav {
    height: 40px;
    line-height: 40px;
    display: block;
    position: relative;
    background: #fafafa;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
}

.tab-nav-item {
    height: 40px;
    line-height: 40px;
    position: relative;
    text-align: center;
    color: #585858;
    font-size: 0.9rem;
    display: block;
    float: left;
    width: 16.333%;
}



.tab-nav-item.tab-active a {
    color: #40c895;
    font-size: 0.8rem;
}

.tab-nav-item a {
    display: inherit;
    font-size: 0.8rem;
    color: #666;
}

.tab-panel {
    position: relative;
    overflow: hidden;
}

.tab-panel .tab-panel-item {
    width: 100%;
    position: absolute;
    top: 0;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
}

.tab-panel .tab-panel-item.tab-active ~ .tab-panel-item {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}

.tab-panel .tab-panel-item.tab-active {
    position: relative;
    -webkit-transition: -webkit-transform .15s;
    transition: -webkit-transform .15s;
    transition: transform .15s;
    transition: transform .15s, -webkit-transform .15s;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.tab-nav-item.tab-active:before {
    content: '';
    width: 70%;
    height: 3px;
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -35%;
    z-index: 4;
    background-color: #40c895;
}

.aui-flex-box h2 {
    font-size: 0.99rem;
    color: #222222;
    font-weight: normal;
    padding-bottom: 10px;
}

.aui-word-key {
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}

.aui-word-key a {
    background: #fff1e1;
    color: #848484;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    display: block;
    float: left;
    margin-bottom: 0.8rem;
    margin-right: 0.8rem;
}

.aui-word-key a:nth-child(2) {
    background: #fff1e1;
}


.icon-hots {
    background-image: url("../assets/hot.png");
    background-size: 15px;
    width: 15px;
    height: 15px;
    display: block;
    float: left;
}
.aui-navBar-fixed{
    padding: 50px 0 20px 0;
}

</style>